package com.zzy.controller;

import com.zzy.domain.Result;
import com.zzy.domain.dto.ConsignorDto;
import com.zzy.service.ConsignorService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consignor")
@RequiredArgsConstructor
public class ConsignorNameController {
    private final ConsignorService consignorService;
    /**
     * 货主信息分页查询
     */
    @GetMapping("/page")
    public Result page(ConsignorDto dto){
        return Result.success(consignorService.getpage(dto));
    }
}
